package com.example.demo.common;

public enum ErrorEnum {
    /*
     * 错误信息
     * */
    E_denglushibai(-1, "用户名或密码不正确"),
    E_chongfu(-1, "用户名重复"),
    E_shanchushibai(-1,"删除失败"),
    E_xiugaishibai(-1, "修改失败"),
    E_charushibai(-1, "增加失败"),
    E_wuyonghu(-1,"没有用户登录"),
    E_dengchushibai(-1,"登出失败"),
    ;

    private Integer errorCode;
    private String errorMsg;
    ErrorEnum(Integer errorCode, String errorMsg) {
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
    }
    public Integer getErrorCode() {
        return errorCode;
    }
    public String getErrorMsg() {
        return errorMsg;
    }
}
